<?php /* @var $this Controller */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta charset="utf-8" />
        <title>Admin Template by www.865171.cn</title>
        <link rel="stylesheet" href="<?php echo bu(); ?>/css/core.css" type="text/css" />
        <?php cs()->registerCoreScript('jquery');?>
        <script type="text/javascript" src="<?php echo bu(); ?>/js/jquery.superfish.min.js"></script>
        <script type="text/javascript" src="<?php echo bu(); ?>/js/jquery.supersubs.min.js"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                Administry.setup();
            });
        </script>
    </head>
    <body>
        <div class="header">
            <div class="header-con">
                <div class="log"><img src="<?php echo bu(); ?>/images/logo.png" alt="Administry" /></div>
                <div class="topnav">
                    <?php echo l(user()->name, array('/manage/user/edit')); ?>
                    <span>|</span> <?php echo l('网站首页', array('/')); ?>
                    <span>|</span> <?php echo l('退出登录', array('/manage/default/logout')); ?><br />
                </div>
                <div class="menu" id="menu">
                    <?php
                    $this->widget('zii.widgets.CMenu', array(
                        'items' => array(
                            array('label' => '控制中心', 'url' => array('/manage/default')),
                            array('label' => '网站设置', 'url' => array('/manage/options')),
                            array(
                                'label' => '新闻',
                                'url' => array('/manage/news/admin'),
                                'items' => array(
                                    array('label' => '添加新闻', 'url' => array('/manage/news/create')),
                                    array('label' => '添加分类', 'url' => array('/manage/newsCategory/create')),
                                    array('label' => '新闻列表', 'url' => array('/manage/news/admin')),
                                    array('label' => '分类列表', 'url' => array('/manage/newsCategory/admin')),
                                ),
                            ),
                            array(
                                'label' => '产品',
                                'url' => array('/manage/product/admin'),
                                'items' => array(
                                    array('label' => '添加产品', 'url' => array('/manage/product/create')),
                                    array('label' => '添加分类', 'url' => array('/manage/productCategory/create')),
                                    array('label' => '产品列表', 'url' => array('/manage/product/admin')),
                                    array('label' => '分类列表', 'url' => array('/manage/productCategory/admin')),
                                ),
                            ),
                            array('label' => '退出 (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest)
                        ),
                        'htmlOptions' => array('class' => 'nav')
                    ));
                    ?>
                </div>
            </div>
        </div>
        <div style="clear:both;"></div>
        <div class="container">
            <?php echo $content; ?>
        </div>
        <div class="footer">
            <div class="footer-con">
                <div class="footer-nav">
                    <?php echo l('主页', array('/')); ?> &middot;
                    <?php echo l('新闻中心', array('/news')); ?> &middot;
                    <?php echo l('产品中心', array('/product')); ?> &middot;
                    <?php echo l('用户管理', array('/manages/user/edit')); ?> &middot;
                    <?php echo l('关于我们', array('/about')); ?> &middot;
                    <?php echo l('联系我们', array('/contact')); ?> &middot;
                    <?php echo l('网站设置', array('/manage/options')); ?>
                </div>
                <p>Copyright &copy; 2012 <b><a href="http://www.yiiframework.com" title="http://www.yiiframework.com">www.yiiframework.com</a></b> | develop by <a href="http://user.qzone.qq.com/350738233/infocenter">dream fly ...</a></p>
            </div>
        </div>
        <a href="#" id="totop">TOP</a>
        <script type="text/javascript" SRC="<?php echo bu(); ?>/js/administry.js"></script>
    </body>
</html>